package com.etime.perfectschool.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.perfectschool.pojo.SchoolNews;
import com.etime.perfectschool.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    Page<User> getMyAllSchoolNews(int id,int current,int size);

    Page<User> getMyAllschoolActivies(int id,int current,int size);

    //  判断用户名是否存在
    boolean getUserByName(String name);

    //  用户登录
    User getUser(Map<String, Object> map);

    //  注册用户
    boolean addUser(User user);

    //  通过查看用户
    User getUserById(int id);

    int updateUser(Map<String,Object> map);
}
